Optimal. Leaf size=73 \[ \frac {e \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{3/2} \sqrt {c}}-\frac {d \log \left (a+c x^2\right )}{2 a^2}+\frac {d \log (x)}{a^2}+\frac {d+e x}{2 a \left (a+c x^2\right )} \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {823, 801, 635, 205, 260} \begin {gather*} -\frac {d \log \left (a+c x^2\right )}{2 a^2}+\frac {e \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{3/2} \sqrt {c}}+\frac {d \log (x)}{a^2}+\frac {d+e x}{2 a \left (a+c x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 260
Rule 635
Rule 801
Rule 823
Rubi steps
\begin {align*} \int \frac {d+e x}{x \left (a+c x^2\right )^2} \, dx &=\frac {d+e x}{2 a \left (a+c x^2\right )}-\frac {\int \frac {-2 a c d-a c e x}{x \left (a+c x^2\right )} \, dx}{2 a^2 c}\\ &=\frac {d+e x}{2 a \left (a+c x^2\right )}-\frac {\int \left (-\frac {2 c d}{x}+\frac {c (-a e+2 c d x)}{a+c x^2}\right ) \, dx}{2 a^2 c}\\ &=\frac {d+e x}{2 a \left (a+c x^2\right )}+\frac {d \log (x)}{a^2}-\frac {\int \frac {-a e+2 c d x}{a+c x^2} \, dx}{2 a^2}\\ &=\frac {d+e x}{2 a \left (a+c x^2\right )}+\frac {d \log (x)}{a^2}-\frac {(c d) \int \frac {x}{a+c x^2} \, dx}{a^2}+\frac {e \int \frac {1}{a+c x^2} \, dx}{2 a}\\ &=\frac {d+e x}{2 a \left (a+c x^2\right )}+\frac {e \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{3/2} \sqrt {c}}+\frac {d \log (x)}{a^2}-\frac {d \log \left (a+c x^2\right )}{2 a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 65, normalized size = 0.89 \begin {gather*} \frac {\frac {a (d+e x)}{a+c x^2}-d \log \left (a+c x^2\right )+\frac {\sqrt {a} e \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {c}}+2 d \log (x)}{2 a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {d+e x}{x \left (a+c x^2\right )^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 217, normalized size = 2.97 \begin {gather*} \left [\frac {2 \, a c e x + 2 \, a c d - {\left (c e x^{2} + a e\right )} \sqrt {-a c} \log \left (\frac {c x^{2} - 2 \, \sqrt {-a c} x - a}{c x^{2} + a}\right ) - 2 \, {\left (c^{2} d x^{2} + a c d\right )} \log \left (c x^{2} + a\right ) + 4 \, {\left (c^{2} d x^{2} + a c d\right )} \log \relax (x)}{4 \, {\left (a^{2} c^{2} x^{2} + a^{3} c\right )}}, \frac {a c e x + a c d + {\left (c e x^{2} + a e\right )} \sqrt {a c} \arctan \left (\frac {\sqrt {a c} x}{a}\right ) - {\left (c^{2} d x^{2} + a c d\right )} \log \left (c x^{2} + a\right ) + 2 \, {\left (c^{2} d x^{2} + a c d\right )} \log \relax (x)}{2 \, {\left (a^{2} c^{2} x^{2} + a^{3} c\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 67, normalized size = 0.92 \begin {gather*} \frac {\arctan \left (\frac {c x}{\sqrt {a c}}\right ) e}{2 \, \sqrt {a c} a} - \frac {d \log \left (c x^{2} + a\right )}{2 \, a^{2}} + \frac {d \log \left ({\left | x \right |}\right )}{a^{2}} + \frac {a x e + a d}{2 \, {\left (c x^{2} + a\right )} a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 74, normalized size = 1.01 \begin {gather*} \frac {e x}{2 \left (c \,x^{2}+a \right ) a}+\frac {e \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{2 \sqrt {a c}\, a}+\frac {d}{2 \left (c \,x^{2}+a \right ) a}+\frac {d \ln \relax (x )}{a^{2}}-\frac {d \ln \left (c \,x^{2}+a \right )}{2 a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.28, size = 61, normalized size = 0.84 \begin {gather*} \frac {e \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{2 \, \sqrt {a c} a} + \frac {e x + d}{2 \, {\left (a c x^{2} + a^{2}\right )}} - \frac {d \log \left (c x^{2} + a\right )}{2 \, a^{2}} + \frac {d \log \relax (x)}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.26, size = 165, normalized size = 2.26 \begin {gather*} \frac {\frac {d}{2\,a}+\frac {e\,x}{2\,a}}{c\,x^2+a}+\frac {d\,\ln \relax (x)}{a^2}+\frac {\ln \left (a\,e\,\sqrt {-a^5\,c}-6\,a^3\,c\,d+a^3\,c\,e\,x+6\,c\,d\,x\,\sqrt {-a^5\,c}\right )\,\left (e\,\sqrt {-a^5\,c}-2\,a^2\,c\,d\right )}{4\,a^4\,c}-\frac {\ln \left (a\,e\,\sqrt {-a^5\,c}+6\,a^3\,c\,d-a^3\,c\,e\,x+6\,c\,d\,x\,\sqrt {-a^5\,c}\right )\,\left (e\,\sqrt {-a^5\,c}+2\,a^2\,c\,d\right )}{4\,a^4\,c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 1.71, size = 359, normalized size = 4.92 \begin {gather*} \left (- \frac {d}{2 a^{2}} - \frac {e \sqrt {- a^{5} c}}{4 a^{4} c}\right ) \log {\left (x + \frac {- 96 a^{4} c d \left (- \frac {d}{2 a^{2}} - \frac {e \sqrt {- a^{5} c}}{4 a^{4} c}\right )^{2} + 4 a^{3} e^{2} \left (- \frac {d}{2 a^{2}} - \frac {e \sqrt {- a^{5} c}}{4 a^{4} c}\right ) + 48 a^{2} c d^{2} \left (- \frac {d}{2 a^{2}} - \frac {e \sqrt {- a^{5} c}}{4 a^{4} c}\right ) - 4 a d e^{2} + 48 c d^{3}}{a e^{3} + 36 c d^{2} e} \right )} + \left (- \frac {d}{2 a^{2}} + \frac {e \sqrt {- a^{5} c}}{4 a^{4} c}\right ) \log {\left (x + \frac {- 96 a^{4} c d \left (- \frac {d}{2 a^{2}} + \frac {e \sqrt {- a^{5} c}}{4 a^{4} c}\right )^{2} + 4 a^{3} e^{2} \left (- \frac {d}{2 a^{2}} + \frac {e \sqrt {- a^{5} c}}{4 a^{4} c}\right ) + 48 a^{2} c d^{2} \left (- \frac {d}{2 a^{2}} + \frac {e \sqrt {- a^{5} c}}{4 a^{4} c}\right ) - 4 a d e^{2} + 48 c d^{3}}{a e^{3} + 36 c d^{2} e} \right )} + \frac {d + e x}{2 a^{2} + 2 a c x^{2}} + \frac {d \log {\relax (x )}}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________